//
//  PKAnnotation.m
//  pkphotomap
//
//  Created by Ed Mancebo on 3/24/11.
//  Copyright 2011 Personal. All rights reserved.
//

#import "PKAnnotation.h"


@implementation PKAnnotation

@synthesize coordinate, image;

- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate {
	coordinate = newCoordinate;
}

- (NSString*) title {
	if (image.title == nil || [image.title isEqualToString:@""])
		return @"untitled";
	
	return image.title;
}

- (NSString*) subtitle {
	return image.username;
}

/*
- (id)autorelease {
	NSLog(@"autorelease %p", self);
	NSLog(@"%@",[NSThread callStackSymbols]);
	return [super autorelease];
}

- (id) retain {
	NSLog(@"retain %p", self);
	NSLog(@"%@",[NSThread callStackSymbols]);
	return [super retain];
}

- (oneway void) release {
	NSLog(@"release %p", self);
	NSLog(@"%@",[NSThread callStackSymbols]);
	[super release];
}
 */

- (void) dealloc {
	[image release];
	[super dealloc];
}

@end
